package com.imooc;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * @ClassName: WarStarterApplication
 * @Package: com.imooc
 * @Description:
 * @Date: 2021/7/28 10:22
 * @Author: sunzheng@beiming.com
 */
// 打包war [4] 增加 war 的启动类
public class WarStarterApplication extends SpringBootServletInitializer {

  @Override
  protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
    // 指向 Application 这个springboot 启动类
    return builder.sources(Application.class);
  }
}
